package workflow;

public class TestEvent extends WorkflowEvent{
	
	private boolean testOk;
	
	public boolean isTestOk() {
		return testOk;
	}

	public void setTestOk(boolean testOk) {
		this.testOk = testOk;
	}

	public TestEvent(int id, String task, EventType type, boolean testOk)
	{
		super(id, task, type);
		this.testOk = testOk;
	}
	
	public static final TestEvent createEvent(int id, String task, EventType type, boolean testOk) {
		return new TestEvent(id, task, type, testOk);
	}
	
	@Override
	public String toString() {
		return super.toString() + " test: " + testOk;
	}

}
